package com.example.exception;

public enum  SelfExceptionEnum {

    SELF_EXCEPTION_NULL(1000 , "数据为空异常"),
    SELF_EXCEPTION_ORDER(500 , "服务端异常"),
    SELF_EXCEPTION_USER(1001 , "用户名已存在");
    ;
    private int code;
    private String msg;

    SelfExceptionEnum(int code , String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
